package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tyxsj entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYXSJ", schema = "YXJF")
public class Tyxsj implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tkind tkind;
	private Tuser tuserByCuserid;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private String cbh;
	private String czh;
	private Double cye;
	private String ckhj;
	private String cxm;
	private Integer ccq;
	private Double cjf;
	private String ckhr;
	private String cqxr;
	private Integer csbyf;
	private String czt;
	private String ckh;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;
	private String cbz;
	private Double cyxfy;

	// Constructors

	/** default constructor */
	public Tyxsj() {
	}

	/** minimal constructor */
	public Tyxsj(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Tyxsj(String cid, Tuser tuserByCcreateuserid, Tkind tkind, Tuser tuserByCuserid, Tdept tdept, Tuser tuserByCmodifyuserid, String cbh, String czh, Double cye, String ckhj, String cxm, Integer ccq, Double cjf, String ckhr, String cqxr, Integer csbyf, String czt, String ckh, Timestamp ccreatedate, Timestamp cmodifydate, String cbz, Double cyxfy) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tkind = tkind;
		this.tuserByCuserid = tuserByCuserid;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.cbh = cbh;
		this.czh = czh;
		this.cye = cye;
		this.ckhj = ckhj;
		this.cxm = cxm;
		this.ccq = ccq;
		this.cjf = cjf;
		this.ckhr = ckhr;
		this.cqxr = cqxr;
		this.csbyf = csbyf;
		this.czt = czt;
		this.ckh = ckh;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
		this.cbz = cbz;
		this.cyxfy = cyxfy;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CKIND")
	public Tkind getTkind() {
		return this.tkind;
	}

	public void setTkind(Tkind tkind) {
		this.tkind = tkind;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CUSERID")
	public Tuser getTuserByCuserid() {
		return this.tuserByCuserid;
	}

	public void setTuserByCuserid(Tuser tuserByCuserid) {
		this.tuserByCuserid = tuserByCuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CBH", length = 20)
	public String getCbh() {
		return this.cbh;
	}

	public void setCbh(String cbh) {
		this.cbh = cbh;
	}

	@Column(name = "CZH", length = 20)
	public String getCzh() {
		return this.czh;
	}

	public void setCzh(String czh) {
		this.czh = czh;
	}

	@Column(name = "CYE", precision = 13)
	public Double getCye() {
		return this.cye;
	}

	public void setCye(Double cye) {
		this.cye = cye;
	}

	@Column(name = "CKHJ", length = 10)
	public String getCkhj() {
		return this.ckhj;
	}

	public void setCkhj(String ckhj) {
		this.ckhj = ckhj;
	}

	@Column(name = "CXM", length = 20)
	public String getCxm() {
		return this.cxm;
	}

	public void setCxm(String cxm) {
		this.cxm = cxm;
	}

	@Column(name = "CCQ", precision = 5, scale = 0)
	public Integer getCcq() {
		return this.ccq;
	}

	public void setCcq(Integer ccq) {
		this.ccq = ccq;
	}

	@Column(name = "CJF", precision = 13)
	public Double getCjf() {
		return this.cjf;
	}

	public void setCjf(Double cjf) {
		this.cjf = cjf;
	}

	@Column(name = "CKHR", length = 8)
	public String getCkhr() {
		return this.ckhr;
	}

	public void setCkhr(String ckhr) {
		this.ckhr = ckhr;
	}

	@Column(name = "CQXR", length = 8)
	public String getCqxr() {
		return this.cqxr;
	}

	public void setCqxr(String cqxr) {
		this.cqxr = cqxr;
	}

	@Column(name = "CSBYF", precision = 6, scale = 0)
	public Integer getCsbyf() {
		return this.csbyf;
	}

	public void setCsbyf(Integer csbyf) {
		this.csbyf = csbyf;
	}

	@Column(name = "CZT", length = 20)
	public String getCzt() {
		return this.czt;
	}

	public void setCzt(String czt) {
		this.czt = czt;
	}

	@Column(name = "CKH", length = 20)
	public String getCkh() {
		return this.ckh;
	}

	public void setCkh(String ckh) {
		this.ckh = ckh;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

	@Column(name = "CBZ", length = 50)
	public String getCbz() {
		return this.cbz;
	}

	public void setCbz(String cbz) {
		this.cbz = cbz;
	}

	@Column(name = "CYXFY", precision = 10)
	public Double getCyxfy() {
		return this.cyxfy;
	}

	public void setCyxfy(Double cyxfy) {
		this.cyxfy = cyxfy;
	}

}